﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebApi_ProductText1.Domain.Entity
{

    /// <summary>
    /// 订单模块
    /// </summary>
    public class Orderform : BaseEntity
    {
        //订单号，用户姓名，用户电话，收货地址，商品编号，商品名称，数量，价格，订单状态，支付状态.....
        //Order number, user name, user telephone, receiving address, commodity number, commodity name, quantity, price, order status, payment status...

        // 订单号
        public string OrderNumber { get; set; }
        // 用户Id
        public int UserId { get; set; }
        // 收货地址
        public string ProductCategory { get; set; }
        // 商品编号ID
        public int ProductId { get; set; }
        // 数量
        public int ExpiryDate { get; set; }
        // 价格
        public decimal price { get; set; }
        // 订单状态
        public string OrderStatus { get; set; }
        // 支付状态
        public string PaymentStatus { get; set; }

        public User User { get; set; }
        public Product Product { get; set; }
    }
}
